Skip to content

Conversation

@rakhimundhada15
Copy link
Contributor

Problem Description

In some scenarios, the code either does not reach context.succeed, or this method is no longer mentioned in the AWS documentation. Therefore, it is uncertain whether the SQS message is always deleted when the Lambda function succeeds, which may result in duplicate SQS messages remaining in the queue

Solution Description

The context.succeed and context.fail methods are no longer recommended and are not present in the current AWS documentation (AWS Lambda Node.js context). Instead, use the callback function to explicitly return success or failure.

@al-cibot
Copy link

CI Service Job Number 223 Logs - FAILURE

alps ci job-logs --organization alertlogic --repository al-aws-collector-js --job-num 223 -g

Stages Run:

  • PR Test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants